<template>
    <div>
        <AButton @click="methods.onClick">点我</AButton>
    </div>
</template>

<script setup lang="ts">
import { AButton, alert, toast } from 'aosv'

const methods = {
    async onClick() {
        const bl = await alert(`<span>确定删除<span style="color:red">这条记录</span>吗？</span>`, {
            title:`<span style="color:blue">我是标题</span>`
        })
        if (bl) {
            toast('你点击了确定')
        } else {
            toast('你点击了取消')
        }
    },
}
</script>